import React from 'react';


@testable
class MyTestableClass {
    isTestable = false
}

 // true
alert(MyTestableClass.isTestable)

function testable(target) {
    target.isTestable = "true";
}


@testable
class Page1 extends React.Component {

    constructor(props) {
        super(props)
        this.isTestable = "false"
    }

    render() {
        return <h2>{this.isTestable}</h2>
    }
}

 alert(Page1.isTestable);


class App extends React.Component {

    render() {
        return <>
            <Page1></Page1>
        </>
    }
}



export default App;
